import os
import json
import pytest


@pytest.fixture(scope="session")
def env(request):
    config_path = os.path.join(request.config.rootdir, 
                               "config", 
                               "test",
                               "conf.json")
    with open(config_path, 'r', encoding='utf-8') as f:
        env_config = json.load(f)
    return env_config

if __name__ == '__main__':
    a=env()
    print(a)